/*
 * color.cpp
 *
 *  Created on: 30/11/2013
 *      Author: gonzalo
 */

#include "color.h"

color::color() {}

std::string color::get(ColorCode fg, ColorCode attr, ColorCode bg) {
	char command[13];
	/* Command is the control command to the terminal */
	sprintf(command, "%c[%d;%d;%dm", 0x1B, attr, fg + 30, bg + 40);

	std::string result(command);
	return result;
}

color::~color() {}

